<template>
	<!-- <view class="collect">
	  <view>商品</view>
	  <view>店铺</view>
	</view> -->
	<view>
	<view class="collect">
		我的评论
	</view>
	<view v-for="(item,index) in selectEvaluate">
		{{item.evaluateId}} {{item.pid}} {{item.category}} {{item.productId}} {{item.evaluateContent}} {{item.evaluateStatus}}
		<button @click="deleteEvaluate(item.evaluateId)">删除</button>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Evaluate: {
				    'limit':'1',
					'size':'5'
				},
			    selectEvaluate : [
					
				]
			}
		},
		onLoad(){
			this.$req.getEvaluateSelect(this.Evaluate).then(res =>{
				this.selectEvaluate = res.data.list
				console.log(this.selectEvaluate),
				console.log(res.data)
			})
		},
		methods: {
			deleteEvaluate (evaluate) {
				this.$req.getEvaluateDelete(evaluate).then(res =>{
					console.log(evaluate);
				})
			}
			}
		}
</script>

<style>
	.collect {
		font-size: 40rpx;
		border: 1rpx solid #DD514C;
		border-radius: 20rpx;
		text-align: center;
		background-color: #FDE6D2;
	}
</style>